package edu.stu.cs.software.family.producer.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.stu.cs.software.family.base.domain.BaseEntity;

/**
 * 
 * @author guo_jing
 *
 */
@Entity
@Table(name = "O_PRODUCER")
public class Producer extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name = "SHOP_ID")
	Shop shop;
	@Column(name="PRODUCERNAME")
	String producerName;
	@Column(name="PHONE")
	String Phone;
	@Column(name="ADDR")
	String addr;
	@Column(name="PSAAWORD")
	String password;
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getProducerName() {
		return producerName;
	}
	public void setProducerName(String producerName) {
		this.producerName = producerName;
	}
	public String getPhone() {
		return Phone;
	}
	public void setPhone(String phone) {
		Phone = phone;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public Shop getShop() {
		return shop;
	}
	public void setShop(Shop shop) {
		this.shop = shop;
	}


}
